package com.csist.service.po.basicInfoModule;

import com.csist.pojo.po.basicInfoModule.EducationMethod;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName EducationMethodService
 * @Description 【自行描述】
 * @Author cn
 * @Date 2024/6/27 12:32
 * @Version 1.0
 */
public interface EducationMethodService {
    /**
     * 查询所有学历方式
     *
     * @return
     */
    List<EducationMethod> findAll();


    /**
     * 根据id查询学历方式
     *
     * @param id
     * @return
     */
    EducationMethod getEducationMethodById(@Param("id") int id);

    /**
     * 根据条件模糊查询
     *
     * @return
     */
    List<EducationMethod> findEducationMethodFuzzy(EducationMethod educationMethod);


    /**
     * 根据条件查询
     *
     * @return
     */
    List<EducationMethod> findEducationMethod(EducationMethod educationMethod);


    /**
     * 添加学历方式
     *
     * @param educationMethod
     * @return
     */
    int addEducationMethod(EducationMethod educationMethod);

    /**
     * 修改学历方式
     *
     * @param educationMethod
     * @return
     */
    int updateEducationMethod(EducationMethod educationMethod);

    /**
     * 修改教学方式状态
     *
     * @param ebId
     * @return
     */
    int updateEducationMethodByState(int ebId);

    /**
     * 删除学历方式
     *
     * @param emId
     * @return
     */
    int deleteEducationMethod(int emId);
}
